package com.vince.hulk.tutorial
{
import org.flixel.FlxSprite;

/**
 * author yangwz
 */		
public class WalkTutorial extends FlxSprite
{
	public function WalkTutorial(X:Number=0, Y:Number=0, direction:int = 1)
	{
		super(X, Y, null);
		if (direction == 1)
		{
			facing = RIGHT;
		}
		else
		{
			facing = LEFT;
		}
		loadGraphic(walk, true, true, 41, 82);
		addAnimation("test", [1, 2, 3, 4], 4, true);
	}
	//==========================================================================
	//  Variables
	//==========================================================================
	[Embed(source = "assets/WalkTutorial.png")]
	private var walk:Class;
	//==========================================================================
	//  Methods
	//==========================================================================
	override public function update():void
	{
		play("test");
		super.update();
	}
}
}